package com.itheima.day5.improve.test2;

public abstract class Hero {
    private String name;
    private int hp;
    private int mp;
    private int damage;
    private int defense;

    public abstract void attack1();

    public abstract void attack2();

    public abstract void attack3();

    public abstract void talk();

    public Hero() {
    }

    public Hero(String name, int hp, int mp, int damage, int defense) {
        this.name = name;
        this.hp = hp;
        this.mp = mp;
        this.damage = damage;
        this.defense = defense;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getHp() {
        return hp;
    }

    public void setHp(int hp) {
        this.hp = hp;
    }

    public int getMp() {
        return mp;
    }

    public void setMp(int mp) {
        this.mp = mp;
    }

    public int getDamage() {
        return damage;
    }

    public void setDamage(int damage) {
        this.damage = damage;
    }

    public int getDefense() {
        return defense;
    }

    public void setDefense(int defense) {
        this.defense = defense;
    }

    @Override
    public String toString() {
        return "Hero{" +
                "name='" + name + '\'' +
                ", hp=" + hp +
                ", mp=" + mp +
                ", damage=" + damage +
                ", defense=" + defense +
                '}';
    }
}
